<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
<head>
</head>

<body>
	<h1>用户一览</h1>
	<c:if test="${not empty message}">
		<div id="message" class="success">${message}</div>	
	</c:if>
			
		<table class="table table table-striped table-hover">
			<thead><tr>
				<th>no</th>
				<th>姓名</th>

				<th><i class="icon-pencil"></i></th>
			</tr></thead>
			<tbody>
			<c:forEach items="${users}" var="user">
				<tr>
					<td>${user.id}&nbsp;</td>
					<td><c:out value="${user.name}"></c:out></td>
					<td>
							<a href="user/update/${user.id}" id="editLink-${user.name}">view</a>
					</td>
				</tr>
			</c:forEach>
			</tbody>		
		</table>
</body>
</html>
